#include "Editor.h"
#include "ui_Editor.h"
#include <qfile.h>
Editor::Editor(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Editor)
{
    ui->setupUi(this);
}

Editor::~Editor()
{
    delete ui;
}

void Editor::openFile(const QString &name)
{
    ui->textEdit->setFile(name);
    return;
    QFile fp(name);
    fp.open(QFile::ReadOnly);
    ui->textEdit->setText(fp.readAll());
    fp.close();
}
